package com.mycompany.app.hr.security.acegi.resource;

import java.io.Serializable;

import org.acegisecurity.GrantedAuthority;

/**
 * 类似于Acegi framework中的UserDetails class.
 * @author Shawn.guo
 *
 */
public interface ResourceDetails extends Serializable {

    /**
     * 资源串
     */
    public String getResString();

    /**
     * 资源类型,如URL,FUNCTION
     */
    public String getResType();

    /**
     * 返回属于该resource的authorities
     */
    public GrantedAuthority[] getAuthorities();

    public void setAuthorities(GrantedAuthority[] authorities);
}
